:: set GOARCH=amd64
::set GOOS=darwin
set GOOS=linux
set CGO_ENABLED=1
set p=dist
rd /s /q %p%
go build -ldflags "-s -w" -o %p%\web ./app/main.go
set GOOS=windows
set CGO_ENABLED=1
go build -ldflags "-s -w" -o %p%\web.exe ./app/main.go
Xcopy html %p%\html\ /e /y
Xcopy db %p%\db\ /e /y
Xcopy config %p%\config\ /e /y
copy web.command %p%\web.command /y
